
#include "BallGame.h"

bool BallGame::initTexts(){
	
	if(!gameTitle.onLoad("fonts/acknowtt.ttf",22))
		return false;
	gameTitle.x = 10;
	gameTitle.setText("BallGame");

	if(!itemDesc.onLoad("fonts/badaboom.ttf",16))
		return false;
	itemDesc.setText("ItemDesc");

	if(!pontosText.onLoad("fonts/acknowtt.ttf",22))
		return false;
	pontosText.x = WND_WIDTH - 100;
	pontosText.zeraPontos();

	if(!bolasText.onLoad("fonts/acknowtt.ttf",22))
		return false;
	bolasText.x = 200;
	bolasText.setBolas(10);

	if(!pauseText.onLoad("fonts/acknowtt.ttf",34))
		return false;
	pauseText.setText("Paused");
	pauseText.center();
	pauseText.setVisivel(false);

	if(!gameOverText.onLoad("fonts/acknowtt.ttf",34))
		return false;
	gameOverText.setText("Game Over");
	gameOverText.center();
	gameOverText.setVisivel(false);

	if(!levelText.onLoad("fonts/acknowtt.ttf",22))
		return false;
	levelText.setText("LevelText");
	levelText.x = 550;

	if(!wonText.onLoad("fonts/acknowtt.ttf",34))
		return false;
	wonText.setText("VICTORY!");
	wonText.center();
	wonText.setVisivel(false);

	Texto::textList.push_back(&gameTitle);
	Texto::textList.push_back(&itemDesc);
	Texto::textList.push_back(&pontosText);
	Texto::textList.push_back(&bolasText);
	Texto::textList.push_back(&pauseText);
	Texto::textList.push_back(&gameOverText);
	Texto::textList.push_back(&levelText);
	Texto::textList.push_back(&wonText);

	return true;
}